package com.qf.collection.homework;

import java.util.Collection;

public class Demo {
    public static void main(String[] args) {
        Collection<String> c1 = new MyLinkedListCollection<>();
        c1.add("hello");
        c1.add("world");
        c1.add("hi");
        c1.add("123");
        System.out.println(c1.size());
        System.out.println(c1);

        System.out.println(c1.remove("123"));
        System.out.println(c1);

//        System.out.println(c1.contains("hi1"));


//        for (String s : c1) {
//            System.out.println(s.toUpperCase());
//        }
    }
}
